package com.mis.pos.service.impl;

import com.mis.pos.dto.ItemNumberDTO;
import com.mis.pos.repository.SaleItemRepository;
import com.mis.pos.service.SaleItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Description
 * @Author yuxiang
 * @CreatedDate 2019/11/24 11:49
 */
@Service
@Transactional
public class SaleItemServiceImpl implements SaleItemService {


    @Autowired
    private SaleItemRepository saleItemRepository;

    @Override
    public List<ItemNumberDTO> findDTObySaleId(Long saleId) {

       return saleItemRepository.searchItemIdsBySaleId(saleId);
    }
}
